﻿using System.Windows;
using System.Windows.Input;

namespace IS_Ever_Green.View
{
    public partial class UserView : Window
    {
        public UserView()
        {
            InitializeComponent();
        }

        private void Window_MouseDown(object sender, MouseButtonEventArgs e)
        {
            if (e.LeftButton == MouseButtonState.Pressed) DragMove();
        }

        private void btnClose_Click(object sender, RoutedEventArgs e)
        {
            Application.Current.Shutdown();
        }

        private void btnMinimize_Click(object sender, RoutedEventArgs e)
        {
            WindowState = WindowState.Minimized;
        }

        private void Exit_Click(object sender, RoutedEventArgs e)
        {
            var mainView = new MainView();
            mainView.Show();
            this.Close();
        }
    }
}
